import java.util.Scanner;
public class PrimeNumber {
    public static void main(String[] args) {
        int i=0;
        int num=0;
        Scanner sc = new Scanner(System.in);
        System.out.println("输入一个数字");
        num= sc.nextInt();
        for(i=2;i<num;i++) {
            if(num%i==0){
                System.out.println(num+"不是素数");
                break;
            }
        }
       if(num<=i){
           System.out.println(num+"是素数");
       }
    }

}

